package com.example.g7640.util;

import org.springframework.util.CollectionUtils;

import java.util.List;

public class CollectionUtil {


    public static <T> T getFirstObj(List<T> list){
        if(CollectionUtils.isEmpty(list)){
            return null;
        }
        return list.get(0);
    }
}
